﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using Thaire.Investment.Domains.Transaction;

namespace Thaire.Investment.Repository
{
    public class InstructionHeaderRepo : BaseRepository<InstructionHeader, int>
    {
       public InstructionHeaderRepo(ISession session)
            : base(session)
        {
        }


       public List<InstructionDetail> GetInstructionDetailByHeaderID(int headerID)
       {
           return new InstructionDetailRepo(_session).GetListByHeaderId(headerID);
       }
    }
}
